package com.videoadmin.utils;

public class CheckExt {
	public static final String[] VIDEO = { "flv" };
	public static final String[] IMAGE = { "jpg", "png", "bmp", "gif" };

	public static boolean checkVideoExt(String ext) {
		for (int i = 0; i < VIDEO.length; i++) {
			if (VIDEO[i].equals(ext)) {
				return true;
			}
		}
		return false;
	}

	public static boolean checkImageExt(String ext) {
		for (int i = 0; i < IMAGE.length; i++) {
			if (IMAGE[i].equals(ext)) {
				return true;
			}
		}
		return false;
	}
}
